﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.Entity
{
    /// <summary>
    /// 退料单
    /// 一个服务单挂多个退料单
    /// </summary>
    public class EMaterialReturnedBill
    {
        public Guid Id { get; set; }

        public string Number { get; set; }

        /// <summary>
        /// 维修单Id
        /// </summary>
        public Guid MaintenanceBillId { get; set; }

        /// <summary>
        /// 维修单物料Id
        /// </summary>
        public Guid MaintenanceBillMaterialId { get; set; }

        /// <summary>
        /// 领料单Id
        /// </summary>
        public Guid MaterialRequisitionBillId { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public Guid MaterialId { get; set; }

        /// <summary>
        /// 仓库Id
        /// </summary>
        public Guid WarehouseId { get; set; }

        /// <summary>
        /// 退料人
        /// </summary>
        public Guid Handler { get; set; }

        /// <summary>
        /// 退料时间
        /// </summary>
        public DateTime HandledTime { get; set; }

        /// <summary>
        /// 实际退回数量
        /// </summary>
        public decimal Count { get; set; }

        public int Status { get; set; }

        public string Creator { get; set; }

        public DateTime CreatedTime { get; set; }
    }
}
